import request from '@/utils/request'

//获取流程节点列表
export function getFlowNodeList(data) {
	return request({
		method: 'get',
		url: 'flowDefinitionNode/query',
		params: data
	})
}

//添加流程节点
export function addedFlowNode(data) {
	return request({
		method: 'post',
		url: 'flowDefinitionNode/add',
		data
	})
}

//删除流程节点
export function deleteFlowNode(id) {
	return request({
		method: 'get',
		url: 'flowDefinitionNode/query/' + id
	})
}

//修改流程节点
export function updateFlowNode(data) {
	return request({
		method: 'post',
		url: 'flowDefinitionNode/update',
		data
	})
}

//获取流程节点详情
export function getFlowNodeDetail(id) {
	return request({
		method: 'get',
		url: 'flowDefinitionNode/query/' + id
	})
}